package ooday03;

public class Person {//人
    String name;
    int age;
    String address;//地址
    Person(String name,int age,String address){
        this.age=age;
        this.name=name;
        this.address=address;
    }
    void eat(){//吃饭
        System.out.println(name+"在吃饭");
    }
    void sleep(){//睡觉
        System.out.println(name+"在睡觉");
    }
    void sayHi(){
        System.out.println("大家好，我叫"+name+"今年"+age+"岁了，家住"+address);
    }
}
